/******************************************************************************
STRICTLY CONFIDENTIAL (!)
COPYRIGHT BY MAX AND JAN PEJS

File:	Filter.h
Date:	01.09.2012
Author:	Max Pejs
******************************************************************************/



#ifndef	FILTER_H
#define	FILTER_H

#include "typedef.h"
#include "defines.h"

class Filter
{
private:

	UInt16	rBuff[CNT_FILTER_COEFS];
	UInt8	fCoeff[CNT_FILTER_COEFS];
	UInt8	begin;
	
public:
	Filter();
	Filter(const UInt8 FilterCoeffs[]);
	~Filter();

	void	add(UInt16 m);
	UInt16	get();
	
};

#endif // FILTER_H

